﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace ZGEDrySaltery.Web.address
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int ADDRESS_ID=(Convert.ToInt32(strid));
					ShowInfo(ADDRESS_ID);
				}
			}
		}
		
	private void ShowInfo(int ADDRESS_ID)
	{
		ZGEDrySaltery.BLL.address bll=new ZGEDrySaltery.BLL.address();
		ZGEDrySaltery.Model.address model=bll.GetModel(ADDRESS_ID);
		this.lblADDRESS_ID.Text=model.ADDRESS_ID.ToString();
		this.lblADDRESS.Text=model.ADDRESS;
		this.lblCREATE_USER_ID.Text=model.CREATE_USER_ID;
		this.lblCREATE_USER_NAME.Text=model.CREATE_USER_NAME;
		this.lblCREATE_TIME.Text=model.CREATE_TIME.ToString();
		this.lblSORT_INDEX.Text=model.SORT_INDEX.ToString();
		this.lblSTATUS.Text=model.STATUS;
		this.lblCOSTOMER.Text=model.COSTOMER;
		this.lblTEL.Text=model.TEL;
		this.lblREMARK.Text=model.REMARK;
		this.lblSEX.Text=model.SEX;

	}


    }
}
